package homewoek1月4号.demo3.d6;

import java.util.ArrayList;

public class Dept {
    private String dname;
    private String did;
    ArrayList<Emp> elist = new ArrayList<>();

    @Override
    public String toString() {
        return "Dept{" +
                "dname='" + dname + '\'' +
                ", did='" + did + '\'' +
                ", elist=" + elist +
                '}';
    }

    public Dept() {
    }

    public Dept(String dname, String did) {
        this.dname = dname;
        this.did = did;
    }

    public Dept(String dname, String did, ArrayList<Emp> elist) {
        this.dname = dname;
        this.did = did;
        this.elist = elist;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public String getDid() {
        return did;
    }

    public void setDid(String did) {
        this.did = did;
    }

    public ArrayList<Emp> getElist() {
        return elist;
    }

    public void setElist(ArrayList<Emp> elist) {
        this.elist = elist;
    }
}
